package com.example.manpower.Entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @TableName salary
 */
@TableName(value ="salary")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Salary implements Serializable {
    private Integer salaryId;

    private BigDecimal basicWage;

    private BigDecimal bonus;

    private BigDecimal assistance;

    private BigDecimal fiveInsurances;

    private Integer userId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}